Solution to puzzle

 

 

Answer: 23 dollars total between three groups.

 

Solution:

 

Let total no. of dollars be X.

 

Therefore,

 

 

(Members x denomination 1) + (Members x denomination 2) + (Members x denomination 3)  = X  

 

There can be only following two cases:-

 

(5 x 1) + (3 x 5) + (1 x3) = 23

 

Or

 

(5 x 3) + (3 x 1) + (1 x5) = 23.