Well, konda,here is my best answer for you!
The possible sets of days for Fridays in a month are {1, 8, 15, 22, 29}, {2, 9, 16, 23, 30}, {3, 10, 17, 24, 31},
{4, 11, 18, 25}, {5, 12, 19, 26}, {6, 13, 20, 27} and {7, 14, 21, 28}. For the first set of days the month would have
2 tests. For the second set of days there would be 4 tests. For the remaining sets the number of tests would
be 3, 3, 2, 1 and 1, respectively. There is only one set of days that results in 4 tests. The sum of the days of
the tests is 2 + 9 + 16 + 23 = 50.