Deductions & credits

I want to understand how to define who pays for the mortgage? In our situation, the bank account that I used to pay the monthly mortgage is also co-owned by two of us.