In a school, there are two bells, one in the primary school and the other in the secondary school. Both the bells ring after every class. The primary school has classes 45 minutes each whereas the secondary school has classes every 1 hour. Find when both the bells ring at the same time again if both classes start at the same time?