joe drives 240 miles at 60 miles per hour, and then he drives the next 120 miles at 40 miles per hour. what is his average speed for the entire trip in miles per hour?	Choose the correct choice from the following options
A) 42  B) 51  C) 50  D) 54  E) 56
<gadget id="calculator">240 + 120</gadget>
<output>360</output>

<gadget id="calculator">240 / 60</gadget>
<output>4</output>

<gadget id="calculator">120 / 40</gadget>
<output>3</output>

<gadget id="calculator">4 + 3</gadget>
<output>7</output>

<gadget id="calculator">360 / 7</gadget>
<output>360/7 = around 51.428571</output>

<result>B</result>
joe drives 240 miles at 60 miles per hour, and then he drives the next 120 miles at 40 miles per hour. what is his average speed for the entire trip in miles per hour?
divide(add(240, 120), add(divide(240, 60), divide(120, 40)))
"t 1 = 240 / 60 = 4 hours t 2 = 120 / 40 = 3 hours t = t 1 + t 2 = 7 hours avg speed = total distance / t = 360 / 7 = 51 mph = b"