Hi Rafael,
Depending on the lender it could be done in one of two ways.
1st method: There would be a loan just in your name for $320,000 and a 2nd loan for $40,000 in your name that is guaranteed by your family using a mortgage on their property. This method allows you to make repayments to the guaranteed portion first and keep better track of how much you need to repay to remove the guarantee.
2nd method: There would be one loan for $360,000 with a guarantee from your family limited to $40,000. This is effectively the same thing except there is only one loan account.
As a general rule the family member offering the guarantee must have significant equity in their property. Many lenders put restrictions on pensioners being guarantors or do not allow guarantors that are not your parents (aunts, uncles, brothers etc all unacceptable).
Thanks