Ashley has 6 books and 9 pencils. James has 12 pencils but is not able to determine the amount of books he has. The amount of books and pencils Ashley and James have are proportional.

How many books does James have? Show your work using mathematics.