If you want to find cosP , since angles Z and P are 2 complementary angles then cosZ is the same as cosP so you say the cosP=sinZ=4/5 (property of 2 complement angles in a right triangle)
if you take 80 and 120 on the graph look at the middle you get 100 and in between 2 and 3 you get 2.5 so it would take 2.5 gallons of gas for 100 miles