Thomas can go to school and ice cream parlor on the bus and his bicycle. In how many ways can he reach the school and parlor?