Attach -지만 to a verb or adjective when the second idea contrasts with the first. The final word carries the polite ending.
This book is interesting but difficult.
A past marker can come before -지만. Here one event is finished, but its result isn’t what the speaker wanted.
I called, but Minji didn’t pick up.
With a noun, use 이지만 after a consonant, as in 학생이지만.