Distances travelled by Hamid and Akhtar in an hour are 9 km and 12 km. Find the ratio of speed of Hamid to the speed of Akhtar.