Retirement tax questions

In other words, I'd like to put $6,500 in the traditional IRA as well as 25% of the SEP income -- and get the bigger deduction, but not sure that is allowed or if it works that way.