2 km
Change 54 minutes to hours:

hours
Let t = time it takes to get to his friend's house
Thus

= time it takes to return home
Distance to Friend's house = Distance back home

distance = speed x time

distributive property

add 5t to both sides of the equation

divide both sides by 9
To find the distance to the friend's house 4 x 1/2 = 2 km