do not totally understand the situation enough to respond. Come back with more clarity and we will attempt to assist you.
One phase I do understand, that flat roof has to have roll asphalt shingles. Then the use of metal flashing around the intersection of this roof and the house must be used. Then the drip edge flashing on the drip side of the roof also must be used.