Math Problem Statement

Total Electricity bill amount - SAR 523.19 shared between 8 members for the number of days lived accordingly. The cost per day is divided as per the members lived together. not together as a whole for month. Divide and Calculate Proportional share amount for Each member of a house in a table format with below details for Electricity bill of 30 days. First determine the number of people living together each day and then distribute the daily cost accordingly. NUMBER OF days where each member lived: For the first 6 days [01-06], 7 members lived together. [Ali, Bilal, Jalal, Sabari, Mujeeb, Haroon, Ashik] For the next 1 day [07], 6 members lived together. [Ali, Bilal, Jalal, Sabari, Mujeeb, Haroon] For the next 5 days (08-12), 5 members lived together. [Ali, Bilal, Jalal, Sabari, Mujeeb] For the next 3 days (13-15), 4 members lived together. [Ali, Bilal, Jalal, Sabari] For the next 15 days (16-30), 5 members lived together. [Ali, Bilal, Jalal, Sabari , Irfan] Ali - 30 Days [From 01-30th] Bilal - 30 Days [From 01-30th] Jalal - 30 Days [From 01-30th] Sabari - 30 Days [From 01-30th] Irfan - 15 Days [From 15th-30th] Mujeeb - 12 Days [From 01-12th] Haroon - 7 Days [From 01-07th] Ashik - 6 Days [From 01-6th]

Solution