It's the below diagram and you want the 50mm bolts (07149140997). I can tell you that 35mm, which are very common on BMWs, definitely aren't long enough as I tried to reuse some on mine! Weirdly, the equivalent bolts for the M are 40mm. :?
http://www.realoem.com/bmw/enUS/showparts?id=BU12-EUR-08-2007-E85-BMW-Z4_25i&diagId=51_4957
They will be surprisingly expensive, so if they are in good condition you could re-use your current bolts once. Mark them with a blob of paint and check them periodically. You could also just source your own M10x50mm 10.9 bolts from Amazon, eBay etc.