Nick's telephone company charges $ 0.06 per minute for weekend calls and $ 0.08 per minute for calls made on weekdays. This month Nick was billed for 512 minutes. The charge for these minutes was $ 40.42. How many minutes did he talk on weekends and how many minutes did he talk on? weekdays?