# Revision history [back]

### Factor a solve output

I am new to sage. So, sorry if my question is too trivial.

I can not factor the output of "solve". For instance, this very simple example

x= var('x')
sols=solve(x==6, x)
factor(sols[0].right())


gives me

6


Why I am not getting the following?

2 * 3


which of course is the output of

factor(6).


PS: I guess that the "type" is a crucial thing here, but anyways I'd need to factor 'sage.symbolic.expression.Expression'