Calculate baseball run differential from runs scored and allowed, solve for a missing total, or estimate Pythagorean win percentage and record.

Required: runs scored and runs allowed.
Total runs scored by the team.
Total runs scored by opponents.
Use a negative value when runs allowed exceed runs scored.
Used to convert expected win percentage into a record.