Fixes Issue #18442 - Simplify deonminators for adding fractions

- Add check on data to limit LCM to <= 50
- Check data to ensure that denominators are not equal