Places A and B are 30 km apart and they are on a straight road. Hamid travels from A to B on bike. At the same time Joseph starts from B on bike, travels towards A. They meet each other after 20 minutes. If Joseph would have started from B at the same time but in the opposite direction (instead of towards A) Hamid would have caught him after 3 hours. Find the speed of Hamid and Joseph.