If it shall appear that any such relative is unable wholly to maintain such poor person, but is able to contribute towards his support, the court may, in its discretion, direct 2 or more relatives of different degrees to maintain such poor person, and shall prescribe the proportion which each shall contribute for that purpose; and if it shall appear that the relatives liable as aforesaid are not of sufficient ability wholly to maintain such poor person, but are able to contribute something therefor, the court shall direct the sum, in proportion to their ability, which such relatives shall severally pay weekly or monthly for that purpose.