Ruby, 19 bytes ->a,b{a|b==2?5:a+b} Try it online!
posted 3y ago by sampersand
# [Ruby](https://tio.run/##KypNqvyfZvtf1y5RJ6k6sSbJ1tbI3tQqUTup9n9BaUmxQlq0ila0QaxeSX58pg6QaQhhxv7/b/jfCAA), 19 bytes ``` ->a,b{a|b==2?5:a+b} ``` [Try it online!](https://tio.run/##KypNqvyfZvtf1y5RJ6k6sSbJ1tbI3tQqUTup9n9BaUmxQlq0ila0QaxeSX58pg6QaQhhxv7/b/jfCAA)