Amal worked a total of 30 hours last week. On Saturday and Sunday he worked 5 times as many hours than he worked the rest of the week. How many hours did he work the rest of the week?