That doesn't consider non-material cost. Such as labor to put it together, testing, R&D, etc. On labor alone the iPhone probably costs more due to needing higher levels of precision and lack of room.
The iPad figure includes manufacturing costs of $9. That particular iPhone BOM does not, but does include packaging. Normally iPhone build labor is only about $3.50, if I recall correctly. Search the web. Easy to find.
As for other costs, all phone makers have to do R&D, build and ship the item, plus pay patent license fees (radios, camera, visual voice mail, power conservation, etc) of $20-$40 per phone. R&D itself is actually a pretty small part of a phone's cost.
All that fun stuff aside, it's not necessary to know the cost down to the penny.
There is no dispute whatsoever (as in zero, zilch, none) that Apple has the highest margins on mass market smartphones. Their growing cash hoard is ample proof, as well as reports every month announcing it. Most analysts put Apple's margin at around 50%, RIM's at 40%, and most everyone else around 30%.
The original question was comparing the iPad and iPhone. The iPhone is usually subsidized by the carrier, so that helps Apple go for more profit as the carrier is willing to pay to get the subscribers.