A restaurant menu has 8 different main courses and 6 different desserts. A customer chooses one main course and one dessert. Work out the total number of ways of choosing a main course and a dessert.