I work a second job can I claim my milage to the second job

I work a second job and I was told I can claim my mileage. If I can do I use the distance from my first job to the second and back or do I use the distance from my first job to my second and then home