Ned rode his bike 7 miles to the library. He took a shortcut on the way home which was only 5 miles long. How many miles did Ned ride altogether?
12 miles