Here we are going to write the sum of the price (roll-up summary) on account object contain the sum of price from the contact object. Before that, you need to create two custom fields one on account name "Total_Price__c" and other on contact name "Price__c".