Joe bikes $x$ miles East at $20$ mph to his friend’s house. He then turns South and bikes $x$ miles at $20$ mph to the store. Then, Joe turns East again and goes to his grandma’s house at $14$ mph. On this last leg, he has to carry flour he bought for her at the store. Her house is $2$ more miles from the store than Joe’s friend’s house is from the store. Joe spends a total of 1 hour on the bike to get to his grandma’s house. If Joe then rides straight home in his grandma’s helicopter at $78$ mph, how many minutes does it take Joe to get home from his grandma’s house?

Let's think step by step and output the final answer within \boxed{}.
user