On each of 3 days Derrick rode 6.45 km to school 150 meters to the library and then 500 m back home how many km did he ride for the three days all together