Artificial intelligent assistant

The law of syllogism example Could anyone give me an example that applies to the law of syllogism? My law looks like this: $$(P \to Q)\wedge(Q\to R)\to(P\to R)$$

If you are smart you like Math. $$(P\to Q)$$ If you like Math you get a good job.$$(Q\to R)$$ Thus

If you are smart you get a good job.$$(P\to R)$$

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 4b3607e8ff0de3e36cb81eb8305e19ac