Alfred has nine times as many cookies as Jerry. Together, they have forty cookies. How many cookies do each person have?

Alfred has cookies and Jerry has cookies.

(Note: Please answer in numeric form.)