Sean has 40/2+4 = <<40/2+4=24>>24 dollars.
Rick has 24*3 = <<24*3=72>>72 dollars.
Sean and Rick have 24+72 = <<24+72=96>>96 dollars together.
#### 96