On each 3 days derrik rode 6.45 km to school, 150 meters to the library, and then 500 meters back home. How many kilometers did he ride for the 3 days altogether?