Victor made a cake for his cousin's birthday party. Victor baked the cake for 40 minutes. It took 8 times as long for Victor to bake the cake as it took to make the frosting. How many minutes did it take Victor to make the frosting?