alex worked at the library 4 hours each night for 20 nights. he earned a total of $640. how much did he earn per hour working at the library?