Although they cannot charge interest, the banks can profit from helping customers to purchase a property using a ijara or murabaha scheme. With an ijara scheme the bank makes money by charging the customer rent; with a murabaha scheme, a price is agreed at the outset which is more than the market value. This profit is deemed to be a reward for the risk that is assumed by the bank.
There are firm laws governing the types of businesses with which the banks can trade. There should be absolutely no investment in unsuitable businesses, including those involved with armaments, pork, tobacco, drugs, alcohol or pornography.................you're welcome😇