r+g+b+p = 20, 2b+r+p = 18, p+b+2g = 23, 3g + r = 17