Jacob walked for x miles and then cycled for y miles between his home and the library. the number of miles Jacob cycled was 3 miles more than twice the number of miles he walked. the total number of miles Jacob walked and cycled was 6 miles. how many miles did Jacob walk and cylcle?