Adam's House ($A$) is located at the distance of $0.9\,\mathrm{km}$ from the road. There is a bus stop ($B$) on this road at the distance of $1.5\,\mathrm{km}$ from the house (see the picture). Adam has overslept and needs to get to the bus stop as quickly as possible. At what distance $x$ from the nearest point $P$ should Adam reach the road knowing that he can move at the speed of $6\,\mathrm{km}/\mathrm{h}$ in rough terrain while being on the road he can move at the speed of $10\,\mathrm{km}/\mathrm{h}$?