Hakim contributed $30,000 of cash for a 40% interest in an architectural firm partnership. He also contributed piece of equipment with an adjusted basis of $10,000, FMV of $15,000, and an attached liability of $8,000. What is Hakim's basis in his partnership interest?