4P = 7J

J= 4P/7

P-3P/14) = (J+3P/14

11P/14 = 4P/7 + 3P/14 = 8P/14 = 3P/14 = 11P/14

any amount of money for Jim originally will satisfy the requirements

Jim has zero works, then Peter had $0 too

Jim had $28 means Peter had $49,

Jim had $56 means Peter had $112

there are endless combinations that meet the requirements