A pizza shop charges $5 for a slice of pizza. They cut each whole pizza into 8 slices. They sold 107 pizzas by the slice. How much money did they make?